package com.itheima.recursion;
//递归的讲解  尚硅谷教程
public class Test {
    public static void main(String[] args) {
        method(3);
    }

    public static void method(int n){
        if(n == 1){
            System.out.println(n);
            return;
        }
        System.out.println(n);
        n--;
        method(n);
    }

    }
